package com.example.demo.service;

import com.example.demo.entity.Question;
import com.example.demo.exception.ServiceException;
import com.example.demo.param.vo.QuestionArrVO;
import com.example.demo.param.vo.QuestionVO;

public interface IQuestionService {

    Boolean insert(String uid, String categroy, String title, String content)throws ServiceException;

    Boolean delete(String id)throws ServiceException;

    Boolean update(String id, String uid, String title, String content, Integer statu) throws ServiceException;

    QuestionVO get(String id)throws ServiceException;

    QuestionArrVO getQueryPage(String category, String title, String content,
                               String uid, Integer statu, Integer page, Integer pageSize)throws ServiceException;
}
